package com.ydl.shopping.core.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/** 节点树结构 */
@Data
@Schema(name = "树结构")
public class TreeSelect {
    /** 节点ID */
    @Schema(description = "节点ID")
    private Long id;

    /** 节点值 */
    @Schema(description = "节点值")
    private String value;

    /** 节点标签 */
    @Schema(description = "节点标签")
    private String label;

    /** 是否禁用 */
    @Schema(description = "是否禁用")
    private Boolean isDisabled;

    /** 子节点 */
    @Schema(description = "子节点")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TreeSelect> children;
}
